import { post } from "@/request/http"
import { RequestBody, ResponseBody } from "../../type"

/**
 * @name 资源管理-系统拓扑维护模块-结点
 * ---------------
 */
const url = '/backend/resource-property-manage/device-topology-node'

const Api = {
    get: (params: RequestBody<any>) => post<any[]>(url + "/get", params),
    update: (params: RequestBody<any>) => post<ResponseBody<any>>(url + "/update", params),
    add: (params: RequestBody<any>) => post<ResponseBody<any>>(url + "/add", params),
    delete: (params: RequestBody<any>) => post<ResponseBody<any>>(url + "/delete", params),
    copy: (params: RequestBody<any>) => post<ResponseBody<any>>(url + "/copy", params),
}

export default Api